﻿using System;
using System.Windows.Forms;

namespace melodyMe
{
    public partial class SaveAsForm : Form
    {
        public string FileName;

        public SaveAsForm(string WindowTitle)
        {
            InitializeComponent();
            this.Text = WindowTitle; //Set different window title, this form has multiple purposes.
        }

        private void BtnOkay_Click(object sender, EventArgs e)
        {
            if (!String.IsNullOrEmpty(txtFilename.Text))
            { FileName = txtFilename.Text; }
            else
            { MessageBox.Show("Please enter a valid filename!", "melodyMe"); return; }

            this.Close();
        }

        private void saveNewPlaylist_Load(object sender, EventArgs e)
        {

        }
    }
}
